package org.finesys.common.redisson.lockResover;

import org.aspectj.lang.ProceedingJoinPoint;
import org.finesys.common.redisson.annotation.DistributedLock;
import org.finesys.common.redisson.entity.LockEntity;

public interface DistributedLockResolver {

    /**
     * 解析一个分布式锁信息
     *
     * @param proceedingJoinPoint AOP 切面
     * @param distributedLock     分布式锁注解
     * @return 锁信息
     */
    LockEntity resolver(ProceedingJoinPoint proceedingJoinPoint, DistributedLock distributedLock);
}
